/**
 * Copyright &copy; 2012-2016 civet All rights reserved.
 */
package cn.mcsys.myadmin.modules.air.entity;

import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import java.util.Date;

import cn.mcsys.myadmin.common.persistence.DataEntity;

/**
 * 司机管理Entity
 * @author leopold
 * @version 2018-08-13
 */
public class AirDriver extends DataEntity<AirDriver> {
	
	private static final long serialVersionUID = 1L;
	private AirCar airCar;		// air_car_id
	private String name;		// 司机名字
	private String idNumber;		// 身份证号
	private String belongUnit;		// 所属单位
	private String phone;		// 手机号
	private String interphone;		// 对讲机
	private Date modificationDate;		// 修改时间
	private Integer note;		// 备注
	
	public AirDriver() {
		super();
	}

	public AirDriver(Integer id){
		super(id);
	}

	public AirCar getAirCar() {
		return airCar;
	}

	public void setAirCar(AirCar airCar) {
		this.airCar = airCar;
	}

	@Length(min=0, max=16, message="司机名字长度必须介于 0 和 16 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=32, message="身份证号长度必须介于 0 和 32 之间")
	public String getIdNumber() {
		return idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}
	
	@Length(min=0, max=32, message="所属单位长度必须介于 0 和 32 之间")
	public String getBelongUnit() {
		return belongUnit;
	}

	public void setBelongUnit(String belongUnit) {
		this.belongUnit = belongUnit;
	}
	
	@Length(min=0, max=16, message="手机号长度必须介于 0 和 16 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	@Length(min=0, max=64, message="对讲机长度必须介于 0 和 64 之间")
	public String getInterphone() {
		return interphone;
	}

	public void setInterphone(String interphone) {
		this.interphone = interphone;
	}
	
	public Date getModificationDate() {
		return modificationDate;
	}

	public void setModificationDate(Date modificationDate) {
		this.modificationDate = modificationDate;
	}
	
	public Integer getNote() {
		return note;
	}

	public void setNote(Integer note) {
		this.note = note;
	}
	
}